﻿<%@ Page Language="C#" MasterPageFile="~/default.master" AutoEventWireup="true" CodeBehind="relatorioservico.aspx.cs" Inherits="CeA.Reports.Atendimento.Web.site.relatorioservico" 
Title="[Q-WEB]: Relatório de Serviços" %>
<%@ Register src="../inc/WebControls/FiltroServico.ascx" tagname="Servico" tagprefix="filtro" %>

<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
  <script src="/js/jquery.jqprint.js" type="text/javascript"></script>
  <script src="/js/jquery.PrintArea.js" type="text/javascript"></script>
  
  <style type="text/css" media="screen">
    .result-table th {width:50px!important; text-align:center;}
    .th-lb {border-left:1px solid #fff; width:50px!important; text-align:center;}
    .lb-0 {border-left:1px solid gray; text-align:center;}
    .result-table td {text-align: center}
    .result-table .first-col {text-align:left; font-weight:normal; background-color:#C5CFE9;}
    .th td {border-bottom:1px solid #fff; text-align:center;}
    .tf td {border-top:1px solid gray; text-align:center;}
    .block {width:50px; display:block}
  </style>
  
  <script type="text/javascript" language="javascript">
//    $(document).ready( function() {
//        $("#cmdImprimir").click( function() {
//        $("#<%=report.ClientID%>").jqprint({ debug: false, importCSS: true, printContainer: true, operaSupport: true;  });
//        });
//    });
      $(document).ready(function() {
          $("#cmdImprimir").click(function() {
              $("#<%=report.ClientID%>").printArea();
          });
      });  
    
  </script>
</asp:Content>
<asp:Content ID="body" ContentPlaceHolderID="BodyContentPlaceholder" runat="server">
  <div class="filter-container">
    <div class="filter-header">
      <span class="b" style="line-height:25px; color:#000">Filtro:</span>
    </div>
    <div class="filter-contents">
      <filtro:Servico ID="filtro" runat="server" />
    </div>
  </div>
  
  <div class="break">
    <asp:Button id="btnExportarExcel" Visible="false" Runat="server" Text="Exportar" CssClass="form-buttom" />
    <span id="pnlImprimir" runat="server" visible="false">
      <input style="display:inline" id="cmdImprimir" type="button" class="form-buttom" value="Imprimir"/>
    </span>
  </div>
  
  <br />
  
  <div style="overflow-x:scroll;border:0px solid silver;" runat="server" id="report" visible="false">
    <h2>Código de Serviço</h2>
    <div>
        <asp:Table runat="server" ID="resultTable" CssClass="result-table" CellPadding="1" CellSpacing="0" style="" />
    </div>

    <div class="break"></div>
    
    <div  id="graph1Container" runat="server" visible="false" style="border:1px solid #CCCCCC; height:606px; width:908px; background:url(/img/bg-marsh1.gif)"></div>
    <br />
    
    <div  id="graph2Container" runat="server" visible="false" style="border:1px solid #CCCCCC; height:606px; width:908px; background:url(/img/bg-marsh1.gif)"></div>
    <br />
    
    <%--<div  id="graph3Container" runat="server" visible="true" style="border:1px solid #CCCCCC; height:606px; width:908px; background:url(/img/bg-marsh1.gif)"></div>
    <br />--%>
  </div>  
</asp:Content>
